package com.wz.project.sap.CUSTOMER.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.wz.project.sap.CUSTOMER.mapper.ZflWmsGetCustomerMapper;
import com.wz.project.sap.CUSTOMER.domain.ZflWmsGetCustomer;
import com.wz.project.sap.CUSTOMER.service.IZflWmsGetCustomerService;
import com.wz.common.utils.text.Convert;

/**
 * 客户主数据Service业务层处理
 * 
 * @author wz
 * @date 2022-09-19
 */
@Service
public class ZflWmsGetCustomerServiceImpl implements IZflWmsGetCustomerService 
{
    @Autowired
    private ZflWmsGetCustomerMapper zflWmsGetCustomerMapper;

    /**
     * 查询客户主数据
     * 
     * @param KUNNR 客户主数据ID
     * @return 客户主数据
     */
    @Override
    public ZflWmsGetCustomer selectZflWmsGetCustomerById(String KUNNR)
    {
        return zflWmsGetCustomerMapper.selectZflWmsGetCustomerById(KUNNR);
    }

    /**
     * 查询客户主数据列表
     * 
     * @param zflWmsGetCustomer 客户主数据
     * @return 客户主数据
     */
    @Override
    public List<ZflWmsGetCustomer> selectZflWmsGetCustomerList(ZflWmsGetCustomer zflWmsGetCustomer)
    {
        return zflWmsGetCustomerMapper.selectZflWmsGetCustomerList(zflWmsGetCustomer);
    }

    /**
     * 新增客户主数据
     * 
     * @param zflWmsGetCustomer 客户主数据
     * @return 结果
     */
    @Override
    public int insertZflWmsGetCustomer(ZflWmsGetCustomer zflWmsGetCustomer)
    {
        return zflWmsGetCustomerMapper.insertZflWmsGetCustomer(zflWmsGetCustomer);
    }

    /**
     * 修改客户主数据
     * 
     * @param zflWmsGetCustomer 客户主数据
     * @return 结果
     */
    @Override
    public int updateZflWmsGetCustomer(ZflWmsGetCustomer zflWmsGetCustomer)
    {
        return zflWmsGetCustomerMapper.updateZflWmsGetCustomer(zflWmsGetCustomer);
    }

    /**
     * 删除客户主数据对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteZflWmsGetCustomerByIds(String ids)
    {
        return zflWmsGetCustomerMapper.deleteZflWmsGetCustomerByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除客户主数据信息
     * 
     * @param KUNNR 客户主数据ID
     * @return 结果
     */
    @Override
    public int deleteZflWmsGetCustomerById(String KUNNR)
    {
        return zflWmsGetCustomerMapper.deleteZflWmsGetCustomerById(KUNNR);
    }
}
